package com.dana.security.exception;

import com.core.enums.ResultCode;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter

public class ServiceException extends RuntimeException{

    private ResultCode resultCode;

    public ServiceException(ResultCode resultCode){
        super(resultCode.getMsg());
        this.resultCode=resultCode;
    }
}
